package nobu.nakata.nfcfare.datamapper;

import java.util.Collection;

import javax.jdo.PersistenceManager;

import net.sf.jsr107cache.Cache;
import nobu.nakata.nfcfare.table.BusStationHistory;


public class BusStationHistoryDataMapper {
	private LongCollectionDataMapper<BusStationHistory> mapper;
	
	public BusStationHistoryDataMapper(Cache cache, PersistenceManager pm) {
		this.mapper		= new LongCollectionDataMapper<BusStationHistory>(
				cache, pm, BusStationHistory.class, "busCode"); 
	}
	
	public Collection<BusStationHistory> findByBusCode(Long busCode) {
		return mapper.findByLongCollection(busCode);
	}
	
	public BusStationHistory set(BusStationHistory item) {
		return mapper.set(item);
	}
}
